<template>
  <div class="page-title">
    <div class="title">
      <slot name="btn"></slot>
      {{ title }}
    </div>
    <div class="btns">
      <slot name="btns"></slot>
    </div>
  </div>
</template>
<script>
export default {
  name: 'DetailHead.vue',
  props: {
    title: {
      type: String,
      default: '',
    },
  },
}
</script>
<style lang="scss" scoped>
.page-title {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  margin-bottom: 10px;
  position: relative;
  .title {
    white-space: pre-wrap;
    word-break: break-all;
    text-align: left;
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
    width: 70%;
    display: flex;
    align-items: center;
  }
}
</style>
